package pers.books.entity;

import java.io.Serializable;

/**
 * 
 * UserBooks
 *
 * @author 姜治昊
 * @time 2018年4月28日 上午11:27:04
 */
public class UserBook implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private User user;
	
	private Book book;
	
	private String buyTime;
	
	private String buySite;
	
	private BuyType type;
	
	private String readOff;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public String getBuyTime() {
		return buyTime;
	}

	public void setBuyTime(String buyTime) {
		this.buyTime = buyTime;
	}

	public String getBuySite() {
		return buySite;
	}

	public void setBuySite(String buySite) {
		this.buySite = buySite;
	}

	public BuyType getType() {
		return type;
	}

	public void setType(BuyType type) {
		this.type = type;
	}

	public String getReadOff() {
		return readOff;
	}

	public void setReadOff(String readOff) {
		this.readOff = readOff;
	}

	public UserBook(User user, Book book, String buyTime, String buySite,
			BuyType type, String readOff) {
		super();
		this.user = user;
		this.book = book;
		this.buyTime = buyTime;
		this.buySite = buySite;
		this.type = type;
		this.readOff = readOff;
	}

	public UserBook() {
		super();
	}

	@Override
	public String toString() {
		return "UserBook [user=" + user + ", book=" + book + ", buyTime="
				+ buyTime + ", buySite=" + buySite + ", type=" + type
				+ ", readOff=" + readOff + "]";
	}
	
	

}
